package com.juren.business.ibatis.dao.impl;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapSession;

import org.apache.ibatis.session.SqlSession;
import com.juren.business.ibatis.dao.TestibatisMapper;
import com.juren.business.ibatis.entity.Testibatis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


import java.sql.SQLException;
import java.util.List;

/**
 * @Title:
 * @Description:
 * @Author: zt
 * @Date: 2018/12/20  17:22
 * @Version:
 */
@Repository
public class TestibatisMapperImpl implements TestibatisMapper {

    @Autowired
    private SqlMapClient sqlMapClient;

    @Override
    public List<Testibatis> selectTest() throws SQLException {
        List<Testibatis> list = sqlMapClient.queryForList("com.juren.business.ibatis.dao.TestibatisMapper" + "."
                + "selectTest");
        return list;
    }
}
